package com.abcdefg.lotterysystem.common.errorcode;

import lombok.Data;

import java.util.Objects;

@Data
public class ErrorCode {
    //定义状态码
    private  final Integer code;
    //定义错误信息
    private final String msg;

    public ErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


    @Override
    public String toString() {
        return "ErrorCode{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
